package com.uu.mapper;

import com.uu.bean.User;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.cursor.Cursor;
import org.apache.ibatis.mapping.ResultSetType;

public interface UserMapper {

    int insertOne(User user);

    /**
     * 流式查询
     */
    @ResultType(User.class)
    @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = 1000)
    Cursor<User> getUserList();
}
